<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Spring - Hibernate integration</title>
</head>
<body>

	<h1>
		<span style="background-color: #FFFFcc">Spring - Hibernate
			integration</span>
	</h1>
	<h2>List of Premise</h2>

	<c:if test="${!empty model.premiseList}">
		<table style="border: 1px solid #cccccc;" bgcolor="black"
			width="600px">
			<tr style="background-color: teal; color: white; text-align: center;"
				height="40px">
				<td>Accreditations</td>
				<td>jspOffices</td>
				<td>mediaContactName</td>
				<td>cateringContact</td>
				<td>cateringType</td>
				<td>localDemographicIssues</td>
				<td>localDemographicNotes</td>
				<td>iS_Network</td>
				<td>clientITFacilitiesDetails</td>
				<td>outreachLocation</td>
				<td>localHotel</td>
				<td>hostingContact</td>
				<td>visitorParkingSpaces</td>
				<td>visitorParkingAlternative</td>
			</tr>
			<c:forEach items="${model.premiseList}" var="premise">
				<tr
					style="background-color: white; color: black; text-align: center; border: 0px;"
					height="30px">
					<td><c:set var="accreditations"
							value="${fn:join(premise.accreditations, ' - ')}" /> <c:out
							value="${accreditations}" /></td>
					<td><c:set var="jspOffices"
							value="${fn:join(premise.jspOffices, ' - ')}" /> <c:out
							value="${jspOffices}" /></td>
					<td><c:out value="${premise.mediaContactName}" /></td>
					<td><c:out value="${premise.cateringContact}" /></td>
					<td><c:out value="${premise.cateringContact}" /></td>
					<td><c:set var="localDemographicIssues"
							value="${fn:join(premise.localDemographicIssues, ' - ')}" /> <c:out
							value="${localDemographicIssues}" /></td>
					<td><c:out value="${premise.localDemographicNotes}" /></td>
					<td><c:out value="${premise.iS_Network}" /></td>
					<td><c:out value="${premise.clientITFacilitiesDetails}" /></td>
					<td><c:set var="outreachLocation"
							value="${fn:join(premise.outreachLocation, ' - ')}" /> <c:out
							value="${outreachLocation}" /></td>
					<td><c:set var="localHotel"
							value="${fn:join(premise.localHotel, ' - ')}" /> <c:out
							value="${localHotel}" /></td>
					<td><c:out value="${premise.hostingContact}" /></td>
					<td><c:out value="${premise.visitorParkingSpaces}" /></td>
					<td><c:out value="${premise.visitorParkingAlternative}" /></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
	<br>
	<a href="register.html">Click Here to add new Premise</a>
</body>
</html>